package com.ruibang.glass.quality.controller.manage;

import com.ruibang.glass.quality.domain.req.ExternalDefectReq;
import com.ruibang.glass.quality.service.ExternalDefectService;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: songJinKang
 * @CreateTime: 2023-12-26  09:06
 * @Description: TODO
 * @Version: 1.0
 */


@RestController
@RequestMapping("/api/quality/manage/externalDefect")
@Api(value = "外部缺陷数据控制器", tags = {"外部缺陷数据控制器"})
public class ExternalDefectController {

    @Autowired
    private ExternalDefectService externalDefectService;

    @PostMapping("/overlayMap")
    @ApiOperation(value = "外部缺陷叠加图", notes = "外部缺陷叠加图")
    public ResultBody overlayMap(@RequestBody ExternalDefectReq externalDefectReq) {
        return externalDefectService.overlayMap(externalDefectReq);
    }

}
